package com.kexuexiong.demo.bear.httpApi;

import com.github.lianjiatech.retrofit.spring.boot.annotation.OkHttpClientBuilder;
import com.github.lianjiatech.retrofit.spring.boot.annotation.RetrofitClient;
import okhttp3.OkHttpClient;

import java.util.concurrent.TimeUnit;

@RetrofitClient(baseUrl = "http://ke.com")
public interface CreateHttpApi {

    @OkHttpClientBuilder
    static OkHttpClient.Builder okhttpClientBuilder(){
        return new OkHttpClient.Builder()
                .connectTimeout(1, TimeUnit.SECONDS)
                .readTimeout(1,TimeUnit.SECONDS)
                .writeTimeout(1,TimeUnit.SECONDS);
    }



}
